<template>
  <div class="layout">
    <div class="table-layout">
      <div class="table-header">
        <el-row>
          <el-form ref="queryForm" :inline="true" :model="queryParams" class="demo-form-inline">
            <el-form-item label="案件名称" prop="ajmc">
              <el-input v-model="queryParams.ajmc" placeholder="请输入" clearable />
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" @click="searchHandle">查询</el-button>
              <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
            </el-form-item>
          </el-form>
        </el-row>
      </div>
      <div class="table-body">
        <el-table :data="tableData" style="width: 100%" height="100%" stripe>
          <el-table-column align="left" prop="ajmc" label="案件名称" min-width="200" />
          <el-table-column align="center" prop="sah" width="180" label="受案号" />
          <el-table-column align="center" prop="ajlb" label="案件类型" />
          <el-table-column align="center" prop="lasj" label="立案时间" />
          <el-table-column align="center" prop="ysjg" label="移送机关" />
          <el-table-column align="center" prop="ajyjrq" label="案卷移交日期" />
          <!-- <el-table-column align="center" prop="lzzt" label="案件流转状态" /> -->
          <el-table-column align="center" prop="spqx" label="审批期限" />
          <el-table-column align="center" prop="cjsj" label="创建时间" />
          <el-table-column align="center" label="操作" width="100">
            <template slot-scope="scope">
              <el-link type="primary">详情</el-link>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <div class="table-footer">
        <pagination
          background
          layout="total, sizes, prev, pager, next, jumper"
          :total="total"
          :page.sync="pageParams.pageNum"
          :limit.sync="pageParams.pageSize"
          @pagination="getList"
        />
      </div>
    </div>
  </div>
</template>

<script>
import page_common from '@/views/mixins/page_common.js'
export default {
  name: 'Todo',
  mixins: [page_common],
  data() {
    return {
      queryParams: { ajmc: '' },
      tableData: []
    }
  },
  created() {
    this.searchHandle()
  },
  methods: {
    getList() {
      this.tableData = [
        {
          ajmc: '李某（累犯）涉嫌抢劫罪审查起诉案‌',
          sah: '（2025）豫0108刑诉0001号',
          ajlb: '审查起诉',
          ysjg: '郑州市公安局惠济分区',
          lasj: '2025-03-14',
          ajyjrq: '2025-03-15',
          lzzt: '审查起诉',
          spqx: '2025-03-20',
          cjsj: '2025-03-16',
          status: 6
        }
      ]
    }

  }
}
</script>

<style scoped lang='scss'>

</style>
